package com.change.study.mongodb.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.change.study.mongodb.domain.Maopao.Comment;
import com.change.study.mongodb.domain.Maopao.Like_user;

@Document
public class MaopaoObject implements Serializable {

    public String activity_id = "";
    public Set<Comment> comment_list = new HashSet<Comment>();
    public int comments;
    public String content = "";
    public long created_at;
    public long  userid;
    public Set<Like_user> like_users = new HashSet<Like_user>();
    public boolean liked;
    public int likes;
    public UserObject owner = new UserObject();
    public int owner_id;
    public String path = "";
    public String device = "";
    public String location = "";
    public String coord = "";
    public String address = "";
    public List<String> images=new ArrayList<String>();
    @Id
    public String id;
    public MaopaoObject(){
		id=Utils.getid();
    }
}

